home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / cross / ava-0.2.5.lha / ava-0.2.5 / examples / endian.s < prev    next >
Encoding:
Text File  |  1999-03-23  |  558 b   |  36 lines

  1. /*
  2.     endian.s
  3.  
  4.     Note: AVA is byte oriented assembler.
  5.     To every storage declaration you may specify the length
  6.     and format.
  7.  
  8.     The length is specifed by the following attributes:
  9.      - b     8 bit (byte)
  10.          - w/W    16 bit (word)
  11.      - l/L  32 bit (long) 
  12.  
  13.     Formats are:
  14.      - little endian (types: b/l/w)
  15.      - big endian (types: L/W)
  16.  
  17.     Uros Platise
  18. */
  19.  
  20. #arch AT90S1200
  21.  
  22.     seg eeprom.val
  23.     dc.b 0x12
  24.     dc.w 0x1234
  25.     dc.W 0x1234
  26.     dc.l 0x12345678
  27.     dc.L 0x12345678
  28.  
  29.     seg eeprom.string
  30.     dc.b "Ata"
  31.     dc.w "Ata"
  32.     dc.W "Ata"
  33.  
  34.     seg eeprom.combination
  35.     dc.w "aaaa",13,"bbbb",0
  36.